//
//  ResidencePermitViewModel.h
//  Jyxt
//
//  Created by 王炜光 on 2017/8/21.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ResidencePermitViewModel : NSObject

/**
 字典转字符串

 @param dic 字典
 @return 返回字符串
 */
+ (NSString *)dictionaryToJson:(NSDictionary *)dic;

/**
 获取居住证列表

 @param data 数据
 @param success 成功
 @param failed 失败
 */
+ (void)getResidencePermitListWithData:(NSDictionary *)data success: (void (^)(id response))success failed: (void (^)(NSString *reason))failed;

/**
 居住证申请的详情

 @param data 数据
 @param success 成功
 @param failed 失败
 */
+ (void)getResidencePermitDetailWithData:(NSDictionary *)data success:(void (^)(id response))success failed:(void (^)(NSString *reason))failed;

/**
 居住证申请通过

 @param data 通过id
 @param success 成功
 @param failed 失败
 */
+ (void)postResidencePermitApplyWithData:(NSDictionary *)data success:(void (^)(id response))success failed:(void (^)(NSString *reason))failed;

/**
 居住证申请拒绝

 @param data 通过id
 @param success 成功
 @param failed 失败
 */
+ (void)refusedResidencePermitApplyWithData:(NSDictionary *)data success:(void (^)(id response))success failed:(void (^)(NSString *reason))failed;
/**
 获取图片

 @param data 通过id
 @param success 成功
 @param failed 失败
 */
+ (void)getResidencePermitApplyImageWithData:(NSDictionary *)data success:(void (^)(id response))success failed:(void (^)(NSString *reason))failed;
@end
